import datetime as dt
from pymongo import MongoClient
from umongo import Document, fields, validate
from umongo.frameworks import PyMongoInstance

db = MongoClient().test
instance = PyMongoInstance(db)

@instance.register
class Dog(Document):
    name = fields.StrField(required=True)
    breed = fields.StrField(default="Mongrel")
    birthday = fields.DateTimeField()

client_data = {'name': 'Odwin', 'birthday': '2001-09-22T00:00:00Z'}
odwin = Dog(**client_data)
print(odwin.breed)
print(odwin.dump())